package com.ruoyi.community.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 社区惩罚对象 bbs_punish
 * 
 * @author ruoyi
 * @date 2021-08-16
 */
public class BbsPunish extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 帖子id */
    @Excel(name = "帖子id")
    private Long articleid;

    /** 操作者id */
    @Excel(name = "操作者id")
    private Long operatorid;

    @Excel(name = "操作者名称")
    private String operatorname;

    /** 被罚者id */
    @Excel(name = "被罚者id")
    private Long punishedid;

    @Excel(name = "被罚者名称")
    private String punishedname;


    /** 备注 */
    @Excel(name = "备注")
    private String memo;

    /** 是否删帖 */
    @Excel(name = "是否删帖")
    private Integer isdelete;

    /** 是否禁言 */
    @Excel(name = "是否禁言")
    private Integer ismute;

    private Integer fromsource;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date operatetime;

    /** 禁言截至时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "禁言截至时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date speaktime;

    private int communityid;

    @Override
    public String toString() {
        return "BbsPunish{" +
                "id=" + id +
                ", articleid=" + articleid +
                ", operatorid=" + operatorid +
                ", operatorname='" + operatorname + '\'' +
                ", punishedid=" + punishedid +
                ", punishedname=" + punishedname +
                ", memo='" + memo + '\'' +
                ", isdelete=" + isdelete +
                ", ismute=" + ismute +
                ", operatetime=" + operatetime +
                ", speaktime=" + speaktime +
                ", communityid=" + communityid +
                '}';
    }

    public Integer getFromsource() {
        return fromsource;
    }

    public void setFromsource(Integer fromsource) {
        this.fromsource = fromsource;
    }

    public int getCommunityid() {
        return communityid;
    }

    public void setCommunityid(int communityid) {
        this.communityid = communityid;
    }

    public String getOperatorname() {
        return operatorname;
    }

    public void setOperatorname(String operatorname) {
        this.operatorname = operatorname;
    }

    public String getPunishedname() {
        return punishedname;
    }

    public void setPunishedname(String punishedname) {
        this.punishedname = punishedname;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setArticleid(Long articleid) 
    {
        this.articleid = articleid;
    }

    public Long getArticleid() 
    {
        return articleid;
    }
    public void setOperatorid(Long operatorid) 
    {
        this.operatorid = operatorid;
    }

    public Long getOperatorid() 
    {
        return operatorid;
    }
    public void setPunishedid(Long punishedid) 
    {
        this.punishedid = punishedid;
    }

    public Long getPunishedid() 
    {
        return punishedid;
    }
    public void setMemo(String memo) 
    {
        this.memo = memo;
    }

    public String getMemo() 
    {
        return memo;
    }
    public void setIsdelete(Integer isdelete) 
    {
        this.isdelete = isdelete;
    }

    public Integer getIsdelete() 
    {
        return isdelete;
    }
    public void setIsmute(Integer ismute) 
    {
        this.ismute = ismute;
    }

    public Integer getIsmute() 
    {
        return ismute;
    }
    public void setOperatetime(Date operatetime) 
    {
        this.operatetime = operatetime;
    }

    public Date getOperatetime() 
    {
        return operatetime;
    }
    public void setSpeaktime(Date speaktime) 
    {
        this.speaktime = speaktime;
    }

    public Date getSpeaktime() 
    {
        return speaktime;
    }




}
